<template>
  <div style="line-height: 34px !important;">
    <!-- <el-button v-if="isAuth('examinationScoreCommonView')" type="primary" title="普通查看" circle size="small" @click.stop="viewCommonHandle">
      <span class="icon iconfont icon-chakan2"></span>
    </el-button> -->
    <el-button v-if="params.data.type === 'A类' && isAuth('examinationScoreXiShuView')" type="success" title="系数查看" circle size="small" @click.stop="viewHandle">
      <span class="icon iconfont icon-xiapushuai"></span>
    </el-button>
    <el-button v-if="params.data.type === 'B类' && isAuth('examinationScoreXiShuView')" type="warning" title="系数查看" circle size="small" @click.stop="viewHandleB">
      <span class="icon iconfont icon-jifenxishu"></span>
    </el-button>
    <el-button v-if="isAuth('examinationScoreReport')" type="danger" title="考试分析报告" circle size="small" @click.stop="viewAnalysisHandle">
      <span class="icon iconfont icon-fenxibaogao"></span>
    </el-button>
    <el-button v-if="isAuth('examinationScoreDrive')" type="primary" title="本次考试驾驶舱查看" circle size="small" @click.stop="viewDriverHandle">
      <span class="icon iconfont icon-dapingzhanshi"></span>
    </el-button>
  </div>
</template>
<script>
import Vue from 'vue'
export default Vue.extend({
  // props: ["flag"],
  data () {
    return {}
  },
  methods: {
    viewCommonHandle () {
      this.params.context.componentParent.viewCommonHandle(this.params.data)
    },
    viewHandle () {
      this.params.context.componentParent.viewHandle(this.params.data)
    },
    viewAnalysisHandle () {
      this.params.context.componentParent.viewAnalysisHandle(this.params.data)
    },
    viewHandleB () {
      this.params.context.componentParent.viewHandleB(this.params.data)
    },
    viewDriverHandle () {
      this.params.context.componentParent.viewDriverHandle(this.params.data)
    }
  }
})
</script>
